home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
edit
/
tmed160a.zip
/
TMED.DOC
< prev
next >
Wrap
Text File
|
1993-03-30
|
14KB
|
298 lines
TMED is copyrighted 1992 by Liang Chen. No portion of this program may be
reproduced without the written permission of Liang Chen. It is FREE. Good
suggestion for major enhancement from the user are welcomed.
STANDARD DISCLAIMERS: THE COPYRIGHT HOLDER OFFERS NO WARRANTY WITH THIS
PROGRAM WHATSOEVER. NEITHER SHALL HE BE LIABLE FOR DAMAGES OF ANY KIND
THAT MAY ARISE FROM ITS USE.
INTRODUCTION
TMED is a TSR memory editor which takes less 8k memory when is loaded.
It can be used as an auxiliary debugging tool for programmers, or
sometime as a gamebuster. TMED can view what is in the memory and edit
the memory while other programs are running. TMED works great with Turbo
Debugger.
TMED versions after 1.20 come with a key macro function. Since TMED is
resident in the memory, this key macro function may be used for any
other foreground running programs. But if the foreground programs also
hook to the INT08, INT09 handlers and use it heavily, the time delay
by the foreground program may cause problems for the macro function.
This is because a BIOS problem that some keys are overwritten before
it can be read.
WARNING: TMED is not bug proof. The system may halt due to an
improper operation (such as editing or loading in critical
memory area, set wrong breakpoints, enter wrong data,
etc.). It will not work for some programs. You have to try
to see if it works under certain programs. Not all people
will benefit from this program. You have to know something
about the computer in order to make full use of it.
OPERATION
LOADING:
Enter 'TMED' at DOS prompt, then press <RETURN>.
INVOCATION:
There are two ways to invoke the TMED, a) Hotkey: press left
<Ctrl> key twice; b) Breakpoint; it will pause and invoke
TMED when DOS runs to breakpoint (See how to set breakpoint
in the following instructions). If the invocation is
successful, TMED will display a memory page (256 bytes) in
hex and ascii codes and the command options.
(Try to run TMED as a TSR now and activate it (press the
left <Ctrl> key twice) while you are reading this file. It
will help you understand the following commands.)
KEY MACRO FUNCTIONS:
Macro function may be used any time when the TMED is in
resident. The macro buffer are big enough for 192 keys.
Press Mky1 (default F11 key) once to record the key macro
(you will hear a short sound). Press F11 again will end
macro recording mode (you will hear a longer sound).
Press Mky2 (default F12 key) will execute the key macro.
There is no time delay while executing the key macro.
If you press Mky2 key while macro is in recording mode, then
it is a recursive macro. For example, you can let a
recursive macro continuously turns page for you. While
a recursive macro is executing, press any key will stop the
macro running.
Mky1 and Mky2 may be assigned to other keys (see below), in
case these keys are used by the foreground running programs.
COMMANDS:
Commands are invoked by pressing the <Alt> key with the upper
case letter in the command option line.
TMED: <Alt>-T will display the TMED data segment. The cursor will
be placed at the first byte of the string input buffer. To
reduce the size of TMED, some data are entered by editing
the corresponding memory addresses in the data segment.
Useful information shown in this page and next page are:
Mode:XBodc:X Editing mode and screen board
color.
May be changed by editor.
Txtc:XHilc:X Text color and highlight
color. highlight color are
used to display bytes in
memory that are different from
the saved buffer or dumped
file. The saved memory buffer
is 256 bytes (a page). May be
changed by editor.
Swpg:XSwmd:X Switch page and video mode
when TMED is invoked. TMED
will try to work in different
video page. If it does not
work normally, try different
Txtc, Hilc, Swpg. TMED does
not save the original screen.
After quit TMED, programs will
operate as before the popup.
But the graphic display and
colors may be changed. May be
changed by editor.
NOTE: AFTER CHANGING THE SWPG,
ALL DISPLAY WILL OUTPUT TO THE
NEW PAGE. YOU SHOULD QUIT
EDITOR MODE AND TMED, THEN
POPUP AGAIN.
Odpg:XOdmd:X Old video mode and page before
popup. Please do not change it.
Endc:XWldc:X The ending char and the wild
char in the search string. By
default, ending char is hex
00; wild char is hex FF. For
example, to find
instruction hex
cmp al,XX 3C XX
jne XX 75 XX
the search string may be
entered as (in hex)
3C FF 75 00
Endc and Wldc may be changed
by editor.
Ustc:XCsrc:X Unset breakpoint byte and
cursor color. By default, Ustc
is hex 'CD' (hex code for
interrupt 'int'); May be
changed by editor.
AX= XXBX= XX The register values before popup
CX= XXDX= XX or breakpoint.
SI= XXDI= XX
CS= XXIP= XX CS:IP, next instruction address
after breakpoint pause.
Line of input: 16 bytes string buffer for 'Find'
XXXXXXXXXXXXXXXX command. Using editor
to change the string.
(next memory page)
Seg1XXSeg2XX Search start and end segment
addresses. By default, Seg1 is
set to the top memory address of
TMED; Seg2 is set to A000, ie.,